package org.winexpress

/**
 *
 * @author Swee Zhi
 */
class RatingComment {
    int id
    
    Date creationDate
    int rating
    String comment

    static hasOne = [customer:Customer, product:Product]
    
    static mapping = {
        comment type: 'text'
    }
    
    static constraints = {
        id(blank:false, unique:true)
        creationDate(blank:true)
        rating(blank:true)
        comment(blank:true)
        customer(blank:true)
        product(blank:true)
    }
}

